package com.ylr.config.framework.mapper;

import com.ylr.config.framework.entity.EnumEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

/**
 * Created by IntelliJ IDEA.
 *
 * @author wyw
 * date: 2023-05-02 18:59:16
 * className: EnumMapper
 * version: 1.0
 * description:
 */
public interface EnumMapper extends BaseMapper<EnumEntity> {

    /**
     * 查询主键列表关联的所有枚举类型
     * @param idList 主键列表
     * @return 枚举类型集合
     */
    Set<Integer> selectTypeList(@Param("idList") List<Long> idList, @Param("deleteStatus") Integer deleteStatus);

    /**
     * 查询枚举配置值
     * @param type         枚举类型
     * @param deleteStatus 删除状态
     * @return 枚举配置值列表
     */
    List<Long> selectEnumValueList(@Param("type") Integer type, @Param("deleteStatus") Integer deleteStatus);
}
